Skip to content

Add release automation with svu and Claude Code skill#225

Draft
radiohead wants to merge 1 commit intomainfrom
add-release-automation
Draft

Add release automation with svu and Claude Code skill#225
radiohead wants to merge 1 commit intomainfrom
add-release-automation

Conversation

@radiohead
Copy link
Copy Markdown
Contributor

Summary

Adds release automation tooling and documentation to streamline the grafanactl release process.

What

  • scripts/release.sh - Bash script using svu for semantic version calculation

    • Accepts patch, minor, major, or next (auto-detect from conventional commits)
    • Runs make all for pre-release validation
    • Shows commits since last tag for review
    • Confirms before tagging and pushing
    • Provides GitHub Actions workflow URL
  • .claude/skills/release/SKILL.md - Claude Code skill for /release command

    • Guides through the release workflow
    • Shows version calculation examples
    • Includes pre-release checklist
    • Troubleshooting guide
  • AGENTS.md - Updated with comprehensive release process documentation

    • Tag-driven release flow
    • Version bump types and conventional commits
    • Pre-release checklist
    • Monitoring and manual release procedures
    • Key files reference

Why

  • Automates version calculation using svu and conventional commits
  • Reduces manual errors during releases
  • Makes process discoverable via /release skill and documentation
  • Provides validation with make all pre-release checks
  • Improves consistency in versioning approach

Test plan

  • scripts/release.sh --invalid shows usage message
  • svu current/next/patch/minor/major all return expected versions
  • Script is executable and properly formatted
  • AGENTS.md renders correctly with new section
  • Skill file created and forcibly added (.claude/ is gitignored)

Next version

Current: v0.1.8
Next (auto-detected): v0.1.9

🤖 Generated with Claude Code

What (description of changes)
- Created scripts/release.sh using svu for semantic version calculation
- Added .claude/skills/release/SKILL.md for Claude Code release guidance
- Updated AGENTS.md with comprehensive release process documentation
- Script supports patch/minor/major/next bump types
- Includes pre-release validation (make all) and user confirmation

Why (rationale)
- Streamlines the release process with automated version calculation
- Uses conventional commits for semantic versioning (svu)
- Provides clear documentation for both human and AI agents
- Reduces manual errors during releases
- Makes release process discoverable via /release skill

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant